package com.cloudcross.ssp.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloudcross.ssp.base.dao.GenericIBatisDao;
import com.cloudcross.ssp.service.IAdGroupNumService;

@Service
public class AdGroupNumService implements IAdGroupNumService {
	
	@Autowired
    private GenericIBatisDao    myBatisDao;

	@Override
	public boolean copyAdGroupNum(long oldadgroupId, long newadgroupId) {
		Map<String,Object>map = new HashMap<String,Object>();
		map.put("oldadgroupId", oldadgroupId);
		map.put("newadgroupId", newadgroupId);
		this.myBatisDao.save("adGroupNumSqlMapper.copyAdgroupNum", map);
		return true;
	}

}
